package com.my.lucky.model.dto;

import java.math.BigDecimal;
import java.time.LocalDateTime;

public class StockSummaryDTO {
    private String code;
    private String name;
    private String concept;
    private String namepy;
    private String conceptpy;
    private BigDecimal mainCapitalFlow1d;
    private BigDecimal capitalFlow1d;
    private BigDecimal mainCapitalFlow2d;
    private BigDecimal capitalFlow2d;
    private BigDecimal mainCapitalFlow3d;
    private BigDecimal capitalFlow3d;
    private BigDecimal mainCapitalFlow5d;
    private BigDecimal capitalFlow5d;
    private BigDecimal mainCapitalFlow6d;
    private BigDecimal capitalFlow6d;
    private BigDecimal mainCapitalFlow7d;
    private BigDecimal capitalFlow7d;
    private Long currentRankPosition;
    private Long currentOldRankPosition;
    private Double changePercent;//涨幅
    private Double price;//最新价格
    private Double marketValue; //市值
    private Double mainCost; //主力成本
    private LocalDateTime createdAt;
    private Double turnoverRate;//换手率

    private double volume;  //成交量

    private double rsi6;  //相对强弱指标 短期
    private double rsi12;  //相对强弱指标 中期
    private double rsi24;  //相对强弱指标 长期


    // 构造函数
    public StockSummaryDTO(String code) {
        this.code = code;
    }

    // Getters and Setters
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getConcept() {
        return concept;
    }

    public void setConcept(String concept) {
        this.concept = concept;
    }

    public BigDecimal getMainCapitalFlow1d() {
        return mainCapitalFlow1d;
    }

    public void setMainCapitalFlow1d(BigDecimal mainCapitalFlow1d) {
        this.mainCapitalFlow1d = mainCapitalFlow1d;
    }

    public BigDecimal getCapitalFlow1d() {
        return capitalFlow1d;
    }

    public void setCapitalFlow1d(BigDecimal capitalFlow1d) {
        this.capitalFlow1d = capitalFlow1d;
    }

    public BigDecimal getMainCapitalFlow2d() {
        return mainCapitalFlow2d;
    }

    public void setMainCapitalFlow2d(BigDecimal mainCapitalFlow2d) {
        this.mainCapitalFlow2d = mainCapitalFlow2d;
    }

    public BigDecimal getCapitalFlow2d() {
        return capitalFlow2d;
    }

    public void setCapitalFlow2d(BigDecimal capitalFlow2d) {
        this.capitalFlow2d = capitalFlow2d;
    }

    public BigDecimal getMainCapitalFlow3d() {
        return mainCapitalFlow3d;
    }

    public void setMainCapitalFlow3d(BigDecimal mainCapitalFlow3d) {
        this.mainCapitalFlow3d = mainCapitalFlow3d;
    }

    public BigDecimal getCapitalFlow3d() {
        return capitalFlow3d;
    }

    public void setCapitalFlow3d(BigDecimal capitalFlow3d) {
        this.capitalFlow3d = capitalFlow3d;
    }

    public BigDecimal getMainCapitalFlow5d() {
        return mainCapitalFlow5d;
    }

    public void setMainCapitalFlow5d(BigDecimal mainCapitalFlow5d) {
        this.mainCapitalFlow5d = mainCapitalFlow5d;
    }

    public BigDecimal getCapitalFlow5d() {
        return capitalFlow5d;
    }

    public void setCapitalFlow5d(BigDecimal capitalFlow5d) {
        this.capitalFlow5d = capitalFlow5d;
    }

    public BigDecimal getMainCapitalFlow6d() {
        return mainCapitalFlow6d;
    }

    public void setMainCapitalFlow6d(BigDecimal mainCapitalFlow6d) {
        this.mainCapitalFlow6d = mainCapitalFlow6d;
    }

    public BigDecimal getCapitalFlow6d() {
        return capitalFlow6d;
    }

    public void setCapitalFlow6d(BigDecimal capitalFlow6d) {
        this.capitalFlow6d = capitalFlow6d;
    }

    public BigDecimal getMainCapitalFlow7d() {
        return mainCapitalFlow7d;
    }

    public void setMainCapitalFlow7d(BigDecimal mainCapitalFlow7d) {
        this.mainCapitalFlow7d = mainCapitalFlow7d;
    }

    public BigDecimal getCapitalFlow7d() {
        return capitalFlow7d;
    }

    public void setCapitalFlow7d(BigDecimal capitalFlow7d) {
        this.capitalFlow7d = capitalFlow7d;
    }

    public Long getCurrentRankPosition() {
        return currentRankPosition;
    }

    public void setCurrentRankPosition(Long currentRankPosition) {
        this.currentRankPosition = currentRankPosition;
    }

    public Long getCurrentOldRankPosition() {
        return currentOldRankPosition;
    }

    public void setCurrentOldRankPosition(Long currentOldRankPosition) {
        this.currentOldRankPosition = currentOldRankPosition;
    }

    public Double getChangePercent() {
        return changePercent;
    }

    public void setChangePercent(Double changePercent) {
        this.changePercent = changePercent;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getMarketValue() {
        return marketValue;
    }

    public void setMarketValue(Double marketValue) {
        this.marketValue = marketValue;
    }

    public String getConceptpy() {
        return conceptpy;
    }

    public void setConceptpy(String conceptpy) {
        this.conceptpy = conceptpy;
    }

    public String getNamepy() {
        return namepy;
    }

    public void setNamepy(String namepy) {
        this.namepy = namepy;
    }

    public Double getMainCost() {
        return mainCost;
    }

    public void setMainCost(Double mainCost) {
        this.mainCost = mainCost;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public Double getTurnoverRate() {
        return turnoverRate;
    }

    public void setTurnoverRate(Double turnoverRate) {
        this.turnoverRate = turnoverRate;
    }

    public double getVolume() {
        return volume;
    }

    public void setVolume(double volume) {
        this.volume = volume;
    }

    public double getRsi6() {
        return rsi6;
    }

    public void setRsi6(double rsi6) {
        this.rsi6 = rsi6;
    }

    public double getRsi12() {
        return rsi12;
    }

    public void setRsi12(double rsi12) {
        this.rsi12 = rsi12;
    }

    public double getRsi24() {
        return rsi24;
    }

    public void setRsi24(double rsi24) {
        this.rsi24 = rsi24;
    }

    @Override
    public String toString() {
        return "StockSummaryDTO{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", concept='" + concept + '\'' +
                ", namepy='" + namepy + '\'' +
                ", conceptpy='" + conceptpy + '\'' +
                ", mainCapitalFlow1d=" + mainCapitalFlow1d +
                ", capitalFlow1d=" + capitalFlow1d +
                ", mainCapitalFlow2d=" + mainCapitalFlow2d +
                ", capitalFlow2d=" + capitalFlow2d +
                ", mainCapitalFlow3d=" + mainCapitalFlow3d +
                ", capitalFlow3d=" + capitalFlow3d +
                ", mainCapitalFlow5d=" + mainCapitalFlow5d +
                ", capitalFlow5d=" + capitalFlow5d +
                ", mainCapitalFlow6d=" + mainCapitalFlow6d +
                ", capitalFlow6d=" + capitalFlow6d +
                ", mainCapitalFlow7d=" + mainCapitalFlow7d +
                ", capitalFlow7d=" + capitalFlow7d +
                ", currentRankPosition=" + currentRankPosition +
                ", currentOldRankPosition=" + currentOldRankPosition +
                ", changePercent=" + changePercent +
                ", price=" + price +
                ", marketValue=" + marketValue +
                ", mainCost=" + mainCost +
                ", createdAt=" + createdAt +
                ", turnoverRate=" + turnoverRate +
                ", volume=" + volume +
                ", rsi6=" + rsi6 +
                ", rsi12=" + rsi12 +
                ", rsi24=" + rsi24 +
                '}';
    }
}
